﻿
@{
    Layout = null;
}

<!DOCTYPE html>

<html>
<head>
    <meta name="viewport" content="width=device-width, initial-scale=1" />
    <title>商家管理</title>
    <link href="~/plugins/layui/css/layui.css" rel="stylesheet" />
</head>
<body style="margin-left:10px;margin-top:10px;">
    <div id="ss" class="layui-form-item layui-hide">
        <div class="layui-inline">
            <div class="layui-input-inline" style="width: 30px;">
                <i class="layui-icon" style="font-size: 30px; color: #1E9FFF;">&#xe615;</i>
            </div>
            <div class="layui-input-inline layui-form layui-form-pane">
                <select name="flgid">
                    <option value="0" selected="">= 全部 =</option>
                    @foreach (var item in @ViewBag.cpfl)
                    {
                        if (@item.gid == @ViewBag.flgid)
                        {
                            <option value="@item.gid" selected="">@item.name</option>
                        }
                        else
                        {
                            <option value="@item.gid">@item.name</option>
                        }
                    }
                </select>
            </div>
            <div class="layui-input-inline" style="width: 150px;">
                <input type="text" placeholder="商家名称" name="name" class="layui-input" value="@ViewBag.name" />
            </div>
            <div class="layui-input-inline" style="width: 150px;">
                <input class="layui-input" placeholder="注册开始日期" onclick="layui.laydate({elem: this, istime: true, format: 'YYYY-MM-DD hh:mm:ss'})" name="stime" value="@ViewBag.stime">
            </div>
            <div class="layui-form-mid">-</div>
            <div class="layui-input-inline" style="width: 150px;">
                <input class="layui-input" placeholder="注册结束日期" onclick="layui.laydate({elem: this, istime: true, format: 'YYYY-MM-DD hh:mm:ss'})" name="etime" value="@ViewBag.etime">
            </div>
            <div class="layui-input-inline" style="width: 150px;">
                <input class="layui-input" placeholder="收入开始日期" onclick="layui.laydate({elem: this, istime: true, format: 'YYYY-MM-DD hh:mm:ss'})" name="pstime" value="@ViewBag.pstime">
            </div>
            <div class="layui-form-mid">-</div>
            <div class="layui-input-inline" style="width: 150px;">
                <input class="layui-input" placeholder="收入结束日期" onclick="layui.laydate({elem: this, istime: true, format: 'YYYY-MM-DD hh:mm:ss'})" name="petime" value="@ViewBag.petime">
            </div>
            <div class="layui-input-inline">
                <a onclick="javascript: page(-1,-1);" class="layui-btn">给偶搜</a>
            </div>
        </div>
    </div>
    <div class="layui-form">
        <table class="layui-table">
            <thead>
                <tr>
                    <th>套餐名称</th>
                    <th>原价</th>
                    <th>销售价</th>
                    <th>管理操作</th>
                </tr>
            </thead>
            <tbody>
                @foreach (var item in Model)
                {
                    <tr id="@item.gid">
                        <td>@item.name</td>
                        <td>@item.yjrmb</td>
                        <td>@item.payrmb</td>
                        <td>
                            <button class="layui-btn layui-btn-mini" onclick="Showiframe('@item.name','/ljsheng/buyau?gid=@item.gid');">编辑</button>
                        </td>
                    </tr>
                }
            </tbody>
        </table>
    </div>
    <div id="page"></div>
    你当前查询的权限<em style="background-color:orangered;">@(LJSheng.Common.LCookie.Getgly("province") == "" ? "全国" : LJSheng.Common.LCookie.Getgly("province")) @LJSheng.Common.LCookie.Getgly("city") @LJSheng.Common.LCookie.Getgly("area")</em> 共 @ViewBag.count 条  <em style="color:red;">当前查询条件商家营业额=@ViewBag.parame1</em> <a href="javascript: daochu();" class="layui-btn">导出当前查询的数据</a>
    <script src="~/js/jquery.js"></script>
    <script src="~/plugins/layui/layui.js"></script>
    <script src="~/js/ljsheng.js"></script>
    <script src="~/js/daochu.js"></script>
    <script>
        page(@ViewBag.pages,@ViewBag.pageindex);
    </script>
</body>
</html>
